{include file="common/head_s"/} 
<style type="text/css">
.layui-table-view{ margin: 0px!important; }
</style>
<div class="main"> 
    <div class="pd15"><table class="layui-table layui-hide" id="orderlist" lay-filter="listss"></table></div>
</div>  
<script type="text/html" id="payinfo"> 
    {{# if(d.bankid){ }}<div onmouseover="layer.tips('{{d.bank_name}}<br>收款账号：{{d.bank_no}}<br>支付时间：{{d.paytime}}',this,{area: 'auto',tips: [1, '#333']});" onmouseout="layer.closeAll();">{{d.payname}}</div>{{# } }} 
</script> 
<script type="text/html" id="shopinfo">
    {{# if(d.orderid_out){ }}
        <div onmouseover="layer.tips('商城订单号：{{d.orderid_out}}',this,{tips: [1, '#333']});" onmouseout="layer.closeAll();">{{d.shopname}}</div>
    {{# }else{ }}
        {{d.shopname}}
    {{# } }}  
</script> 
<script src="/static/plugins/layui/layui.js"></script> 
<script>
    layui.use(['layer','table','form','laydate'], function() {
        var table = layui.table,form = layui.form, $ = layui.jquery, layer = layui.layer,laydate = layui.laydate; 
        channelid="{$channelid}"; 
        userid="{$userid}"; 
        shopid="{$seller.id}"; 
        laydate.render({
            elem: '#timess',range: true
        });
        tableIn = table.render({
            id: 'listss',
            elem: '#orderlist', 
            url: '{:url("index")}',
            method: 'post', 
            page: true,
            cols: [[ 
                {field: 'orderid', title: '平台订单号',align: 'center', width:138},
                {field: 'money', title: '订单金额',align: 'center', width: 120}, 
                {field: 'state_name', title: '订单状态',align: 'center', width: 90}, 
                {field: 'points_name', title: '上分状态',align: 'center', width: 90}, 
                {field: 'cionname', title: '币种名称',align: 'center', width: 120,},
                {field: 'price', title: '单价/CNY',align: 'center', width: 100},
                {field: 'number', title: '数量',align: 'center', width: 100},
                {field: 'payname', title: '支付信息',align: 'center', width: 100,templet: '#payinfo'}, 
                {field: 'fei_shop', title: '手续费',align: 'center', width: 100}, 
                {field: 'fei_jie', title: '结算状态',align: 'center', width: 90},  
                {field: 'channelname', title: '所属通道',align: 'center', width: 120}, 
                {field: 'shopname', title: '所属商户',align: 'center', width: 120,templet: '#shopinfo'},   
                {field: 'addtime', title: '提交时间',align: 'center', width: 142},   
            ]],
            limit: 10 //每页默认显示的数量
            ,where: {channelid:channelid,userid:userid,shopid:shopid}
        });   
    });
    function orderquan(timessss){
        tableIn.reload({ page: {page: 1},where: {timequan:timessss,channelid:channelid,userid:userid,shopid:shopid}}); 
    }
</script>
</body>
</html>